package com.becca.cake.model.voucher;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 抵用券支付流水实体
 * @copyright  尊星(上海)信息科技有限公司
 * @author Mouwanming
 * @date 2016年9月6日 上午11:15:17
 */
public class VoucherUserPaymentsModel implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4771404499721375553L;
	
	/**抵用券流水编号*/
	private Integer id;
	/**用户ID*/
	private Integer userId;
	/**抵用券订单ID*/
	private Integer voucherOrdersID;
	/**订单总金额*/
	private Double totalAmount;
	/**支付状态(0:失败 1:成功)*/    
    private Byte payStatus;
	/**支付类型(0:微信 1:支付宝)*/
    private Byte payWays;
    /**支付单号*/
    private String payNo;
    /**支付时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payDate;
    /**备注*/
    private String remark;
    /**创建时间*/
    private Date    createdDate;
    /**创建人*/
    private String  createdName;
    /**用户名*/
    private String userName;
    /**抵用券编码*/
    private String voucherCode;
    
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getVoucherOrdersID() {
		return voucherOrdersID;
	}
	public void setVoucherOrdersID(Integer voucherOrdersID) {
		this.voucherOrdersID = voucherOrdersID;
	}
	public Double getTotalAmount() {
		return totalAmount;
	}
	public void setTotalAmount(Double totalAmount) {
		this.totalAmount = totalAmount;
	}
	public Byte getPayStatus() {
		return payStatus;
	}
	public void setPayStatus(Byte payStatus) {
		this.payStatus = payStatus;
	}
	public Byte getPayWays() {
		return payWays;
	}
	public void setPayWays(Byte payWays) {
		this.payWays = payWays;
	}
	public String getPayNo() {
		return payNo;
	}
	public void setPayNo(String payNo) {
		this.payNo = payNo;
	}
	public Date getPayDate() {
		return payDate;
	}
	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Date getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	public String getCreatedName() {
		return createdName;
	}
	public void setCreatedName(String createdName) {
		this.createdName = createdName;
	}
    public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getVoucherCode() {
		return voucherCode;
	}
	public void setVoucherCode(String voucherCode) {
		this.voucherCode = voucherCode;
	}
	@Override
    public String toString() {
        return "UserPaymentsDO [id=" + id + ", userId=" + userId + ", voucherOrdersID=" + voucherOrdersID
               + ", totalAmount=" + totalAmount + ", payStatus=" + payStatus + ", payWays=" + payWays
               + ", payNo=" + payNo + ", payDate=" + payDate + ", remark=" + remark
               + ", createdDate=" + createdDate + ", createdName=" + createdName + ", userName=" + userName + ", voucherCode=" + voucherCode + "]";
    }

    
    

}
